﻿using System.Xml.Serialization;

namespace MetaMapics.Gpx
{
  public class Copyright
  {
    [XmlAttribute("author")] public string Author {get; set; }
    [XmlElement("year")] public int? Year {get; set; }
    [XmlIgnore] public bool YearSpecified { get { return Year.HasValue; } } 
    [XmlElement("license")] public string LicenseUri { get; set; }

    public Copyright()
    {
    }

    public Copyright(string author)
    {
      Author = author;
    }
  }
}
